﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPlaceOnLiveMap.aspx.cs"
    Inherits="GNSWebSite.TestPages.TestPlaceOnLiveMap" MasterPageFile="~/MasterPages/Main.Master" %>

<%@ Register Src="../Controls/PlaceOnLiveMap.ascx" TagName="PlaceOnLiveMap" TagPrefix="uc1" %>
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html;" charset="utf-8" />

    <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>

    <script type="text/javascript">
        theMap = null;
        function load() {
            theMap = new VEMap('map');
            theMap.LoadMap(new VELatLong(47.6, -122.33), 10, 'h', false);
            //theMap.LoadMap();
            //theMap.HideDashboard();
            //zoomTo(53.3862, -1.4345, 14);
        }

        function resizeMap(w, h) {
            theMap.Resize(w, h);
        }

        function panMap(dx, dy) {
            theMap.Pan(dx, dy);
            window.external.onContentChange();
        }

        function centerAndZoom(lat, lon, zoomDelta) {
            theMap.SetCenterAndZoom(new VELatLong(lat, lon), theMap.GetZoomLevel() + zoomDelta);
            window.external.onContentChange();
        }

        function zoomTo(lat, lon, zoomLevel) {
            theMap.SetCenterAndZoom(new VELatLong(lat, lon), zoomLevel);
        }

        function _onMapError(e) {
            window.external.onError();
        }

        function pixelToLatLon(x, y) {
            m = theMap.PixelToLatLong(new VEPixel(x, y));
            return m.Latitude + ',' + m.Longitude;
        }

        function latLonToPixel(lat, lon) {
            m = theMap.LatLongToPixel(new MapLocation(new VELatLong(lat, lon)));
            return m.X + ',' + m.Y;
        }
    </script>

</head>--%>
<%--<body style="margin: 0px" onload="load();">
    <form id="form2" runat="server">
    <div style="overflow: hidden; width: 100%; height: 500px;" id="map">
    </div>
    </form>
</body>
</html>--%>
<asp:Content ContentPlaceHolderID="cphMainContent" runat="server">
    <uc1:PlaceOnLiveMap ID="PlaceOnLiveMap1" runat="server" />
</asp:Content>
